package com.example.test.service;

import com.example.test.entity.Message;
import com.example.test.mapper.UserMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.PathVariable;

import java.util.List;


public interface Messageservice {


    public boolean findByName(String from, String to);

    boolean InsertMessage(String from, String text, String to,Integer id);

    String Insert(Message message);

    List<Message> getMessage();
    List<Message> getMessagesBetween(@PathVariable String from, @PathVariable String to);

}
